import request from '@/utils/request'

// 查询检测报告列表
export function listDetectReport(query) {
  return request({
    url: '/geek/detectReport/list',
    method: 'get',
    params: query
  })
}

// 查询检测报告详情
export function getDetectReport(reportId) {
  return request({
    url: '/geek/detectReport/' + reportId,
    method: 'get'
  })
}

// 新增检测报告
export function addDetectReport(data) {
  return request({
    url: '/geek/detectReport',
    method: 'post',
    data: data
  })
}

// 修改检测报告
export function updateDetectReport(data) {
  return request({
    url: '/geek/detectReport',
    method: 'put',
    data: data
  })
}

// 删除检测报告
export function delDetectReport(reportId) {
  return request({
    url: '/geek/detectReport/' + reportId,
    method: 'delete'
  })
}

// 导出检测报告
export function exportDetectReport(query) {
  return request({
    url: '/geek/detectReport/export',
    method: 'post',
    data: query,
    responseType: 'blob'
  })
} 